package com.meiqia.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lightman
 * @since 2020-12-08
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_doctor")
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     *  医生对应的编号
     */
    @TableField("user_id")
    private Long userId;

    @TableField(exist = false)
    private String doctorName;

    /**
     * 身份证号
     */
    @TableField("card")
    private String card;

    /**
     * 资格
     */
    @TableField("type_id")
    private Long typeId;

    /**
     * 擅长
     */
    @TableField("adept")
    private String adept;

    /**
     * 工龄
     */
    @TableField("seniority")
    private Integer seniority;

    /**
     * 诊室
     */
    @TableField("room_id")
    private Long roomId;

    /**
     *  服务次数
     */
    @TableField("service_number")
    private Integer serviceNumber;


}
